<?php
/**
 * Filename: SimpleTest.php
 * 功能: 测试代码
 * 说明:
 */
include_once 'LightOnCommand.php';
include_once 'RemoteControl.php';

/**
 * 重载 __autoload() 方法
 * @var string
 */
/*function __autoload($classname) {
	include_once $classname.'.php';
} //END func __autoload
*/

$remote = new RemoteControl();
$light = new Light();
$lightOn = new LightOnCommand($light);

$remote->setCommand($lightOn);
$remote->buttonWasPressed();

?>